package com.coldchain.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 知识库分类
 * </p>
 *
 * @author fangliai
 * @since 2018-10-25
 */
@TableName("ch_repository_classify")
public class RepositoryClassify implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "classifyId", type = IdType.AUTO)
    private Integer classifyId;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 父节点
     */
    @TableField("parentId")
    private Integer parentId;

    /**
     * 排序权重
     */
    private Integer stor;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("createBy")
    private String createBy;

    @TableField("modTime")
    private LocalDateTime modTime;

    @TableField("modBy")
    private String modBy;


    public Integer getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Integer classifyId) {
        this.classifyId = classifyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getStor() {
        return stor;
    }

    public void setStor(Integer stor) {
        this.stor = stor;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getModTime() {
        return modTime;
    }

    public void setModTime(LocalDateTime modTime) {
        this.modTime = modTime;
    }

    public String getModBy() {
        return modBy;
    }

    public void setModBy(String modBy) {
        this.modBy = modBy;
    }

    @Override
    public String toString() {
        return "RepositoryClassify{" +
        "classifyId=" + classifyId +
        ", name=" + name +
        ", parentId=" + parentId +
        ", stor=" + stor +
        ", createTime=" + createTime +
        ", createBy=" + createBy +
        ", modTime=" + modTime +
        ", modBy=" + modBy +
        "}";
    }
}
